﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Logs
{
    /// <summary>
    /// 系统错误日志，所有子程序错误汇总
    /// </summary>
    [Table("ErrorLogs")]
    public class ErrorLog : Entity<long>, IHasCreationTime
    {
        /// <summary>
        /// 错误消息
        /// </summary>
        [Required]
        [StringLength(1024)]
        public string Message { get; set; }
        /// <summary>
        /// 应用程序
        /// </summary>
        [StringLength(32)]
        public string Appdomin { get; set; }
        /// <summary>
        /// 堆栈
        /// </summary>
        public string StackTrace { get; set; }
        /// <summary>
        /// 异常
        /// </summary>
        public string Exception { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
